package www.wen.com.common.lib.data.entities


import android.os.Parcelable
import androidx.annotation.Keep
import kotlinx.parcelize.Parcelize

@Keep
data class ServerEntity(
    val createTime: String,
    val forbidReason: String,
    val officialFlag: String,
    val recommendFlag: String,
    var serverBackground: String,
    var serverIntro: String,
    val onlineCount: Int,
    val serverGroups: List<ServerGroup>,
    val serverId: String,
    var serverLogo: String,
    val serverMember: ServerMember?,
    var serverName: String,
    val serverStatus: Int, // 0
    val unForbidTime: String
) {
    @Keep
    @Parcelize
    data class ServerGroup(
        val channelVO: List<ServerGroupEntity.Content.ChannelVO>,
        val createTime: String,
        val groupId: Int, // 0
        val groupName: String,
        val groupSort: Int, // 0
        val groupType: String,
        val serverId: String,
        val updateTime: String
    ):Parcelable

    @Keep
    @Parcelize
    data class ServerMember(
        var allowFriendFlag: String,
        val avatar: String,
        val createTime: String,
        val id: Int, // 0
        var nickName: String,
        var noticeType: String,
        val ownerFlag: String,
        val serverId: String,
        val updateTime: String,
        val userId: String
    ):Parcelable
}